﻿<Window x:Class="CartoonViewer.W_Setting"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="漫漫看设置"   Width="300"  Height="100" 
        WindowStartupLocation="CenterScreen" Padding="10"
        BorderThickness="0" ResizeMode="NoResize" WindowStyle="None"
        Background="Transparent" AllowsTransparency="True" 
    >

    <StackPanel>

        <Border x:Name="Win" CornerRadius="5" Background="DeepPink" BorderBrush="#a5a5a5" BorderThickness="1" 
                  MouseLeftButtonDown="CvsTitle_MouseLeftButtonDown"
                  MouseMove="CvsTitle_MouseMove"
                  MouseLeftButtonUp="CvsTitle_MouseLeftButtonUp" 
                >
            <StackPanel>
                   <!-- 窗口标题 begin -->
                <Canvas Height="20" x:Name="CvsTitle" Background="Transparent" 
                     VerticalAlignment="Center" 
					 MouseLeftButtonDown="CvsTitle_MouseLeftButtonDown" 
                  MouseMove="CvsTitle_MouseMove"
                  MouseLeftButtonUp="CvsTitle_MouseLeftButtonUp"  >
                	<Border CornerRadius="2" Canvas.Left="4" BorderBrush="white" BorderThickness="1">
                		<Image Source="favicon.ico" Height="18" Width="18" ></Image>
					</Border>
                    <TextBlock x:Name="LbTitle" Opacity="1"  DockPanel.Dock="left" VerticalAlignment="Center" TextAlignment="Center" Height="14" Canvas.Left="26" Canvas.Top="3" HorizontalAlignment="Stretch" ><Run Text="漫漫看_V1.0.0"/></TextBlock>
                    <StackPanel x:Name="PlTitleBtn" Orientation="Horizontal" Canvas.Right="0" Canvas.Top="0"  Background="Transparent"    >
                            <Button x:Name="WinBtnMin" Focusable="False" Style="{DynamicResource MinButtonStyle}" VerticalAlignment="Bottom" Width="25" Height="20" Click="WinBtnMin_Click" Clip="M0,0 L5,0 L11,0 L25,0 L25,20 L7.5,20 L5,20 L5,19.57264 L4.9212484,19.544903 C2.5089612,18.661646 0.6768837,16.57473 0.15237331,14.011512 L0.15016794,14 L0,14 L0,12.5 z"    />
                        <Button x:Name="WinBtnClose" Focusable="False" Style="{StaticResource CloseButtonStyle}"  VerticalAlignment="Bottom" Width="25" Height="20" Click="WinBtnClose_Click" Clip="M0,0 L17.5,0 L18,0 L18,0.016986579 L18.077053,0.021869317 C21.404985,0.27508774 24.125807,2.7001983 24.825226,5.8829137 L24.849495,6.0000001 L25,6.0000001 L25,7.5000001 L25,20 L18,20 L5,20 L0,20 z">
                        	              
						</Button>
						 
                         
                    </StackPanel>
                </Canvas>
                
                <!-- 窗口标题 end -->
                <StackPanel>
                    <StackPanel Orientation="Vertical"  >
                        <StackPanel Orientation="Horizontal" VerticalAlignment="Center">
                            <TextBlock VerticalAlignment="Center" Padding="5 0 0 0" >漫画保存位置：</TextBlock>
                            <TextBox Margin="2" Width="130" x:Name="TxtSavePath"></TextBox>
                            <Button Margin="2" x:Name="BtnBrowse" Click="BtnBrowse_Click">浏览...</Button>
                        </StackPanel>
                        <StackPanel Orientation="Horizontal" Margin="5" HorizontalAlignment="Center" VerticalAlignment="Center">
                            <Button Margin="2" x:Name="BtnYes" Click="BtnYes_Click">确定</Button>
                            <Button Margin="2" x:Name="BtnNo" Click="BtnNo_Click">取消</Button>
                            <Button Margin="2" x:Name="BtnSave" Click="BtnSave_Click">应用</Button>
                        </StackPanel>
                    </StackPanel>

                </StackPanel>
            </StackPanel>
        </Border>
    </StackPanel>
</Window>
